package predicates;

public class On {
	
	private String crate;
	private String surface;
	
	
	public String getCrate() {
		return crate;
	}
	public void setCrate(String crate) {
		this.crate = crate;
	}
	public String getSurface() {
		return surface;
	}
	public void setSurface(String surface) {
		this.surface = surface;
	}
	public On(String crate, String surface) {
		super();
		this.crate = crate;
		this.surface = surface;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		On other = (On) obj;
		if (crate == null) {
			if (other.crate != null)
				return false;
		} else if (!crate.equals(other.crate))
			return false;
		if (surface == null) {
			if (other.surface != null)
				return false;
		} else if (!surface.equals(other.surface))
			return false;
		return true;
	}

}
